/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Detection.Model
{

    /// <summary>
    ///  updateProbeTaskSpec
    /// </summary>
    public class UpdateProbeTaskSpec
    {

        ///<summary>
        /// http body：选择探测类型为1&#x3D;http时有效，最长不超过1024字节
        ///</summary>
        public string HttpBody{ get; set; }
        ///<summary>
        /// http cookie：选择探测类型为1&#x3D;http时有效，最大允许20个key、value对，最长不超过1024字节
        ///</summary>
        public List<KeyValue> HttpCookie{ get; set; }
        ///<summary>
        /// http header：选择探测类型为1&#x3D;http时有效，最大允许20个key、value对，最长不超过1024字节
        ///</summary>
        public List<KeyValue> HttpHeader{ get; set; }
        ///<summary>
        /// http探测方法,可选值：1:get、2:post、3:head
        ///</summary>
        public long? HttpType{ get; set; }
        ///<summary>
        /// task名称，不允许重复，长度不超过32字符，只允许中英文、数字、下划线_、中划线-, [0-9][a-z] [A-Z] [- _ ]
        ///</summary>
        public string Name{ get; set; }
        ///<summary>
        /// 探测源（发起对探测目标探测的云主机，需安装相应的agent才能探测）
        ///Required:true
        ///</summary>
        [Required]
        public List<Probe> Probes{ get; set; }
    }
}
